function openProductosModal(){
	openModal(panel.modals["productos"]);
}

function addProducto(){
	var inputs=openedModal.getElementsByTagName("INPUT");
	var prod="";
	var quant="";
	var productid="";
	for(var i=0;i<inputs.length;i++){
		if(inputs[i].name=="product"){
			prod=inputs[i].value;
		}
		if(inputs[i].name=="productid"){
			productid=inputs[i].value;
		}
		if(inputs[i].name=="quant"){
			quant=inputs[i].value;
		}
	}
	closeOpenedModal();
	var grid=getClassChildren(openedModal,"grid")[0];
	var tr=document.createElement("TR");
	//var html="<TD class=\"hidden\"></TD><TD>"+prod+"</TD><TD>"+quant+"</TD>";
	var td1=document.createElement("TD");
	td1.className="hidden";
	var td2=document.createElement("TD");
	td2.innerHTML=prod;
	var td3=document.createElement("TD");
	td3.innerHTML=quant;
	tr.appendChild(td1);
	tr.appendChild(td2);
	tr.appendChild(td3);
	grid.getElementsByTagName("tbody")[0].appendChild(tr);
}

function removeSelectedProduct(){
	alert("REMOVE");
	
}